﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ReceivingQuery.aspx.cs" Inherits="WMS6.Web.Inbound.ReceivingQuery" meta:resourcekey="Page" %>

<%@ Register src="../UserControls/MultipleSelectControl.ascx" tagname="MultipleSelectControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>ReceivingQuery</title>
    <link href="../style/zh/1/css.css" type="text/css" rel="Stylesheet" id="mycss" />
    <link href="../Css/style.css" type="text/css" rel="stylesheet" />
    <script src="../Js/jquery.js" type="text/javascript"></script>
    <script src="../Js/jquery.simplemodal.js" type="text/javascript"></script>        
    <script src="../Js/util.js" type="text/javascript"></script>
    <script src="../Js/InitPage.js" type="text/javascript"></script>
    
    <script type="text/javascript">
       
        //初始化页面
        window.onload = function(){
            initQueryPage();
        }
        
        //窗口大小改变时触发的事件
        window.onresize = function()
	    {
	        autoResizeQueryDiv("div_query");
	    }
	    
	    //弹出窗口选择承运商
        function selectCarrier()
        {
            var rtnValue = popModalWindow('../Configuration/CarrierQuery.aspx?action=txtCarrierID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtCarrierID").focus();
                document.getElementById("txtCarrierID").value = rtnValue;
            }
        }
        
         //弹出窗口选择货主
        function selectOwner()
        {
            var rtnValue = popModalWindow('../Configuration/OwnerQuery.aspx?action=txtOwnerID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtOwnerID").focus();
                document.getElementById("txtOwnerID").value = rtnValue;
            }
        }
        
         //弹出窗口选择供应商
        function selectVendor()
        {
            var rtnValue = popModalWindow('../Configuration/VendorQuery.aspx?action=txtVendorID','dialogWidth=800px;dialogHeight=500px;center=yes;resizable=yes;status=no;');
            if(rtnValue != null && rtnValue.toString() != "")
            {
                document.getElementById("txtVendorID").focus();
                document.getElementById("txtVendorID").value = rtnValue;
            }
        }
    </script>
</head>
<body>
    <form id="F4020" runat="server">
    <div>
        <asp:ScriptManager ID="ScriptManager1" runat="server" />
        <div id="div_menu">
            <div style="float: left; width: 8px;">
                <div class="tabL"></div>
            </div>
            <div class="tabLabelCont tabCur">
                <asp:Label ID="lblASN" runat="server" Text="入库单" CssClass="hover" 
                    meta:resourcekey="lblASN"></asp:Label>
            </div>
            <div style="float: left">
                <div class="tabR"></div>
            </div>
        </div>
        <div id="div_query">
            <table width="360" cellpadding="0" cellspacing="0">
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblASNID" runat="server" Text="入库通知单号" 
                            meta:resourcekey="lblASNID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtASNID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtASNID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlASNIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlASNIDOper">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblPoID" runat="server" Text="采购订单号" 
                            meta:resourcekey="lblPoID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtPoID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtPoID"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlPoID" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlPoID">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblExternalASNID" runat="server" Text="外部入库单号" 
                            meta:resourcekey="lblExternalASNID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtExternalASNID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtExternalASNID"></asp:TextBox>
                    </td>
                    <td>
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlExternalASNIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlExternalASNIDOper">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblType" runat="server" Text="类型" 
                            meta:resourcekey="lblType"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%--<asp:DropDownList ID="ddlType" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlType">
                        </asp:DropDownList>--%>
                        <uc1:MultipleSelectControl ID="MSCType" runat="server" />    
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlTypeOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlTypeOper">
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblStatus" runat="server" Text="状态" 
                            meta:resourcekey="lblStatus"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <%--<asp:DropDownList ID="ddlStatus" runat="server" CssClass="mediumselectbox" 
                            meta:resourcekey="ddlStatus">
                        </asp:DropDownList>--%>
                        <uc1:MultipleSelectControl ID="MSCStatus" runat="server" />    
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlStatusOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlStatusOper">
                        </asp:DropDownList>
                    </td>
                </tr>                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblOwnerID" runat="server" Text="货主代码" 
                            meta:resourcekey="lblOwnerID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtOwnerID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtOwnerID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectOwner();"/>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlOwnerIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlOwnerIDOper">
                        </asp:DropDownList>
                    </td>
                </tr>
                                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblVendorID" runat="server" Text="供应商代码" 
                            meta:resourcekey="lblVendorID"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtVendorID" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtVendorID"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectVendor();"/>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlVendorIDOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlVendorIDOper">
                        </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblVendorName" runat="server" Text="供应商名称" 
                            meta:resourcekey="lblVendorName"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtVendorName" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtVendorName"></asp:TextBox>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlVendorNameOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlVendorNameOper">
                        </asp:DropDownList>
                    </td>
                </tr>
                
                <tr>
                    <td>
                        <asp:Label CssClass="label" ID="lblCarrier" runat="server" Text="承运商代码" 
                            meta:resourcekey="lblCarrier"></asp:Label>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:TextBox ID="txtCarrier" runat="server" CssClass="textbox" 
                            meta:resourcekey="txtCarrier"></asp:TextBox><img src="../Images/icon_find.gif" alt="select one item" class="img" onclick="selectCarrier();"/>
                    </td>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:DropDownList ID="ddlCarrierOper" runat="server" CssClass="selectbox" 
                            meta:resourcekey="ddlCarrierOper">
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
        </div>
        <div id="div_bottom">
            <table>
                <tr>
                    <td>
                        <asp:Button ID="btnSearch" runat="server" Text="<%$Resources:ButtonResource,btnSearch%>"
                            CssClass="button" Enabled="False" OnClick="btnSearch_Click" />
                    </td>
                    <td>
                        <asp:Button ID="btnNew" runat="server" Text="<%$Resources:ButtonResource,btnNew%>"
                            CssClass="button" Enabled="False" Visible="False" />
                    </td>
                    <td>
                        <asp:Button ID="btnList" runat="server" Text="<%$Resources:ButtonResource,btnList%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='ReceivingList.aspx?from=list';return false;" />
                    </td>
                    <td>
                        <asp:Button ID="btnExport" runat="server" Text="<%$Resources:ButtonResource,btnExport%>"
                            CssClass="button" Enabled="False" OnClientClick="javascript:window.location.href='ReceivingList.aspx?from=query&export=y';return false;" />
                    </td>
                </tr>
            </table>
        </div>
        <input id="hdnActionID" type="hidden" runat="server" />
    </div>
    <link href="../Js/JqueryPlugin/jquery.multiselect.css" rel="stylesheet" type="text/css" />
    <link href="../Js/JqueryPlugin/jquery.ui.css" rel="stylesheet" type="text/css" />
    <script src="../Js/JqueryPlugin/jquery.multiselect.min.js" type="text/javascript"></script>    
    </form>
</body>
</html>
